package com.systop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.systop.entity.Consignee;
import com.systop.entity.SysUser;

import java.util.List;

public interface ConsigneeDao extends BaseMapper<Consignee> {
    //返回页面查询数据
    public List<Consignee> showConsigneeInfo(Consignee consignee);
    //通过用户名查询Id
    public Long findIdByUserCode(String userCode);
    //查询总数
    public int countAllConsignee(Consignee consignee);
    //返回添加修改下拉框数据
    public List<SysUser> findAllSysUserName();

    //查看订单中是否存在相关收货人，有的话禁止删除
    public int findOrder(Long consigneeId);
    //删除收货人信息
    public int delConsignee(Long consigneeId);

    //添加收货相关信息
    public int addConsignee(Consignee consignee);

    //修改收货人相关信息
    public int updConsignee(Consignee consignee);
}
